<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<body>
<div id="userLogin">
    账号:<input id="account" type="text"><br>
    密码:<input id="password" type="password"><br>
    <input type="button" value="登录" @click="userLogin"><br>
</div>
</body>
<script>
    var app = new Vue({
        el: "#userLogin",
        methods: {
            userLogin: function () {
                let data = new FormData();
                data.append("user_account", $("#account").val())
                data.append("user_password", $("#password").val())
                axios.post("http://localhost:9999/user/userLogin", data).then(function (response) {
                    window.location.href=response.data.href
                }, function (err) {
                    console.log(err)
                })
            }
        }
    })
</script>
</html>